﻿<navigation:Page 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:my="clr-namespace:CARE"
	x:Class="CARE.SocialNetworks" 
	Title="Social Networks Page"
	d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot">
        <Border Background="White" Grid.Column="1" Grid.Row="1" CornerRadius="5">
            <Grid ShowGridLines="False">
                <Grid.RowDefinitions>
                    <RowDefinition Height="35" />
                    <RowDefinition />
                    <RowDefinition Height="5" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="5" />
                    <ColumnDefinition />
                    <ColumnDefinition Width="5" />
                </Grid.ColumnDefinitions>

                <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="20"
							Grid.Row="0" Grid.ColumnSpan="3" >
						Social Networks Models Management Module
                </TextBlock>
                <Line StrokeThickness="1" Stroke="Black" X1="0" X2="770" Y1="30" Y2="30"
						Grid.ColumnSpan="3" Grid.RowSpan="3" />

                <Grid ShowGridLines="False" Grid.Column="1" Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Grid ShowGridLines="False" Grid.Column="0">

                        <StackPanel HorizontalAlignment="Stretch" Orientation="Vertical"
									Margin="5,5,5,5" Grid.Row="1">
                            <Button  Height="45" Width="158" Margin="0,10,0,0" Click="importSocialNetworkButton_Click" >
                                <TextBlock TextWrapping="Wrap" TextAlignment="Center">
					                            Import community from external file
                                </TextBlock>
                            </Button>
                            <Button Height="45" Width="158" Margin="0,10,0,0" Click="createSocialNetworkButton_Click">
                                <TextBlock TextWrapping="Wrap" TextAlignment="Center">
					                            Generate and save commmunity to file
                                </TextBlock>
                            </Button>

                            <!--TODO podpiac zdarzenia -->
                            <StackPanel x:Name="ControlPanel" Visibility="Collapsed" >
                                <TextBlock Margin="5,200,0,0">Choose layout:</TextBlock>
                                <ComboBox Name="layoutChooser" Width="160" Height="20" SelectionChanged="LayoutChooser_SelectionChanged"></ComboBox>
                                <Button Width="160" Height="20" Content="Balance graph" Margin="0,20,0,0" Click="BalanceGraph_Click"></Button>
                                <TextBlock Margin="5">Zoom:</TextBlock>
                                <Slider Name="zoom" Width="160" Value="4" ValueChanged="Zoom_ValueChanged"></Slider>
                            </StackPanel>
                        </StackPanel>
                    </Grid>

                    <Grid ShowGridLines="False" Grid.Column="1">
                        <Border BorderBrush="Gray" BorderThickness="1" Grid.Row="1">
                            <Grid ShowGridLines="False">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="25" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>

                                <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
											Grid.Row="0">
										Model visualization:
                                </TextBlock>
                                <Line StrokeThickness="2" Stroke="Gray" X1="0" X2="560" Y1="25" Y2="25" />
                                <Canvas Name="rootCanvas" Grid.Row="1" my:Clip.ToBounds="true">
                                    <!-- tu wyswietlanie -->
                                </Canvas>
                            </Grid>
                        </Border>
                    </Grid>
                </Grid>
            </Grid>
        </Border>
    </Grid>
</navigation:Page> 
